<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('绑定车辆')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-device-bind">
            <div style="display: flex; flex-direction: row; align-items: center; justify-content: center;">
                <input name="devId" th:value="${devId}" type="hidden">
                <div class="col-sm-2 control-label" style="vertical-align: center;">输入车牌：</div>
                <div style="width: 240px;">
                    <input name="plateNo" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "device/device"
        $("#form-device-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/bindPlate", $('#form-device-bind').serialize());
            }
        }
    </script>
</body>
</html>